package classes;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class LeituraTeclado {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		InputStream teclado = System.in;
		Scanner scanner = new Scanner(teclado);
		FileOutputStream escrita = new FileOutputStream("escrita.txt");
		PrintStream escritor = new PrintStream(escrita);

		while (scanner.hasNextLine()) {
			escritor.println(scanner.nextLine());
		}

		scanner.close();
		escritor.close();

	}

}
